﻿namespace IssueVision.Data.Web
{
    /// <summary>
    /// Resolution class client-side extensions
    /// </summary>
    public partial class Resolution
    {
        /// <summary>
        /// Returns white space when the name is null
        /// </summary>
        public string DisplayName
        {
            get
            {
                if (_name == null)
                    return " ";
                return _name;
            }
        }

        /// <summary>
        /// Returns a Nullable ResolutionID
        /// </summary>
        public byte? ResolutionID2
        {
            get
            {
                return _name == null ? default(byte?) : _resolutionID;
            }
        }
    }
}